package cn.amossun.starter.event.property;

import lombok.Data;

import java.util.Map;

@Data
public class SimpleEventMessage implements EventMessage {

    private String service;

    private String instance;

    private String topic;

    private String definition;

    private String description;

    private String schema;

    private String methodName;

    private String message;

    private Map<String, Object> argumentsMap;

    @Override
    public String toString() {
        return "SimpleEventMessage{" +
                "instance='" + instance + '\'' +
                "topic='" + topic + '\'' +
                ", definition=" + definition +
                ", description='" + description + '\'' +
                ", schema='" + schema + '\'' +
                ", methodName='" + methodName + '\'' +
                ", message='" + message + '\'' +
                ", argumentsMap='" + argumentsMap + '\'' +
                '}';
    }
}
